import 'package:flutter/material.dart';

class Day03 extends StatelessWidget{
  
  @override
  Widget build(BuildContext context) {
    // TODO: implement build
    return Scaffold(
      body: Center(
        child: Container(
          child:new Text('Hello JSPang',style: TextStyle(fontSize: 40.0),),
          alignment: Alignment.topLeft,
          width:500.0,
          height:400.0,
          // color: Colors.lightBlue,
          padding:const EdgeInsets.fromLTRB(10.0,30.0,0.0,0.0),// 内边距
          margin: const EdgeInsets.all(10.0),// 外边距
          decoration:new BoxDecoration( // 边框颜色 和 color属性冲突
              gradient:const LinearGradient(
                  colors:[Colors.lightBlue,Colors.greenAccent,Colors.purple]
              ),
            border: Border.all(width: 2.0,color: Colors.red)
          ),
        ),
      ),
    );
  }
  
}